import ImageCommon from "../assets/image/common/ImageCommon";
import {useTranslation} from "react-i18next";
import { useSelector } from "react-redux";
import {AppState} from "../state";

export const colors = {
    white:'#FFFFFF',
    black:'#000000',
    main:'#F27405',
    white_half:'rgba(255,255,255,0.5)',
    black_7:'rgba(0,0,0,0.7)',
    '6D6D6D':'#6D6D6D',
    '494949':'#494949',
    F0F0F0:'#F0F0F0',
    E5E5E5:'#E5E5E5',
    blue:'#2274C0',
    transparent:'transparent',
    FFFAF6:'#FFFAF6',
    "333333":'#333333',
}

export const bannerConfig = {
    banner:ImageCommon.banner_ocean
}

enum ChainId {
    MAINNET = 1,
    ROPSTEN = 3,
    RINKEBY = 4,
    GÖRLI = 5,
    KOVAN = 42,
    HECOMAIN = 128,
    HECOTEST = 256,
    BIANMAIN = 56,
    BIANTEST = 97,
    OKTEST = 65,
    DRAGON = 1337,
}

export const ChainName:any = {
    [ChainId.HECOTEST]:"HECOTEST",
    [ChainId.HECOMAIN]:"HECO",
    [ChainId.DRAGON]:"DRAGON",
}

export enum TimeStatus {
    NOT_START=0,
    STARTING=1,
    FINISHED=2,
}
export const TimeStatusLabel:any = {
    [TimeStatus.NOT_START]:"notStart",
    [TimeStatus.STARTING]:"comingSoon",
    [TimeStatus.FINISHED]:"finished",
}

export const CommonTvl:{[proppName:string]:number} = {};
// 鱼卡
// ["Clownfish", "Angelfish", "Butterflyfish", "Guppy", "TigerFish", "Parrotfish", "Lionfish"]
//鱼卡颜色配置
// export const FishColors = {0: '绿', 1: '蓝', 2: '红', 3: '紫',4:"粉", 5: '黑',6:"白",7:"金"}
export const FishName:any = {
    0:"clownfish",
    1:"angelfish",
    2:"butterflyfish",
    3:"guppy",
    4:"tigerFish",
    5:"parrotfish",
    6:"lionfish",
}
export const FishColors:any = {0: 'green', 1: 'blue', 2: 'red', 3: 'purple',4:"pink", 5: 'black',6:"white",7:"golden"}
export const FishDna:any = {0:"普通",1:"优秀",2:"稀有",3:"完美"}
export const FishLp:any = {0: 'Green', 1: 'Blue', 2: 'Red', 3: 'Purple',4:"Pink", 5: 'Black',6:"White",7:"Golden"}
export const FishInfoCn:any = {
    clownfish:"小丑鱼",
    angelfish:"神仙鱼",
    butterflyfish:"蝴蝶鱼",
    guppy:"孔雀鱼",
    tigerFish:"老虎鱼",
    parrotfish:"鹦鹉鱼",
    lionfish:"狮子鱼",

    green:"绿色",
    blue:"蓝色",
    red:"红色",
    purple:"紫色",
    pink:"粉色",
    black:"黑色",
    white:"白色",
    golden:"金色",
}
export function getFishCardSrc(type=0,color=0,perfect=0) {
    return require(`../assets/image/common/${FishName[type]}/${FishName[type]}_${perfect}.png`)
}
export function getFishCardBg(color=0) {
    return require(`../assets/image/common/bgcard/bg_card_${color}.png`)
}
